<include file='Public/header'/>
	<style type="text/css">
		body, html{width: 100%;height: 100%;margin:0;font-family:"微软雅黑";}
		#allmap{height:100%;width:100%;}
		#r-result{width:100%; font-size:14px;}
	</style>
<body>
	<div id="allmap"></div>
	
	<div class="mui-content" style="display:none">
	    <div class="no-message" style="margin-top:60px;">
	    	<i class="iconfont icon-zanwuxiaoxitixing"></i>
	    	<p>暂无消息</p>
	  		</div>
	</div>
</body>
<script src="http://api.map.baidu.com/api?v=2.0&ak=xH9CkRR96Vk6KWM2KH5qhlsSncNgAGdQ"></script>
<script type="text/javascript">
	//导航
		var lng = "{$info['lng']}";
		var lat = "{$info['lat']}";
		
		if(lat == '' || lng == ''){
			$('#allmap').css('display','none');
			$('.mui-content').css('display','inline');
			
		}else{
			var map = new BMap.Map("allmap");    // 创建Map实例
	        map.centerAndZoom(new BMap.Point(116.331398, 39.897445),16);  // 初始化地图,设置中心点坐标和地图级别
	        //map.setCurrentCity("河南");          // 设置地图显示的城市 此项是必须设置的
	        //map.enableScrollWheelZoom(true);  
	
	        var new_point = new BMap.Point(lng,lat);
	        var marker = new BMap.Marker(new_point);  // 创建标注
	        map.addOverlay(marker);              // 将标注添加到地图中
	        map.panTo(new_point);  
	        $('#allmap').css("overflow","");
		}
</script>
<include file='Public/footer'/>


